import request from '@/config/http.js'

export function lists(params) {
  return request({
    url: 'pgmmanage/pgmgroup',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: 'pgmmanage/pgmgroup',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'pgmmanage/pgmgroup',
    method: 'put',
    data
  })
}

export function del(ids) {
  return request({
    url: 'pgmmanage/pgmgroup',
    method: 'delete',
    data: ids
  })
}

export function channelGroup() {
  return request({
    url: 'pgmmanage/channelgroup',
    method: 'get'
  })
}

export function channelGroupAdd(data) {
  return request({
    url: 'pgmmanage/channelgroup',
    method: 'post',
    data
  })
}

export function channelGroupEdit(data) {
  return request({
    url: 'pgmmanage/channelgroup',
    method: 'put',
    data
  })
}

export function channelGroupDel(ids) {
  return request({
    url: 'pgmmanage/channelgroup',
    method: 'delete',
    data: ids
  })
}

export default { lists, add, edit, del, channelGroup, channelGroupAdd, channelGroupEdit, channelGroupDel }
